Repository navigation
Summary: group identical pixel findings across routes and widths - #79
Merged
Merged
Conversation
A shared change (a restyled header, a removed nav link) showed once per route row. `findings:` lists each element change, text line or element-less band delta seen on two or more routes once, with every route and width, in stdout, results.json (`summary.findings`) and the report summary. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… copying them, wrap the docs lines Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What / why
A change shared by many routes (a restyled header, a removed nav link) printed once per route row, so 37 routes read as 37 problems. A new
findings:block lists each repeated finding once, with every route and width it was seen at:It's in the piped summary and the TTY summary (before
computed:), in results.json assummary.findings(always present,[]when none:{ finding, selector?, at: [{ url, widths }] }), and collapsed at the top of report.html next to the computed-styles one.Grouping key
The printed token, so identical tokens group and the example shown is exact:
fmtElements([e])(selector, side, first two changed props with values / text / box deltas / re-parented)+"…"/-"…"band ±Npx, only for a band with no located element (otherwise its element already groups it)Kept only when it spans 2+ routes; widths of one route already collapse in the per-route rows. Sorted by routes, then shots, then token. Caps reuse
SHOWNandfmtAtfrom computed.ts (20 findings, 3 routes each, then+N routes/(+N more in results.json)).Excluded: accepted shots and accepted bands/regions.
varies, masked and unstable pixels are already out ofregions, so they need no filtering. No pixel-hash key, no--masksuggestion per group (a repeated element is as often the intended change).pixelFindingsandgroupFindingsshareaddAt(theat: [{ url, widths }]list) andfmtAt(/a@1440,375 … +N routes) from computed.ts. Both new functions live in report.ts so run.ts can import them without a cycle.How tested
controls.test.ts):/nav+/nav?againat 1440 and 375 (the fixture server routes on the path, so it's the same diff twice). It pinssummary.findings, the stdout header and line, and the report section. It fails without the src change and passes with it.summary.findingsis[]and stdout has nofindings:line, so different changes don't group.npm run typecheck,lint,format:check,npm test(302 pass),npm run test:visual(333 pass).Docs: docs/output.md (token row, report line, results.json example), skills/renderdiff reference.md and SKILL.md read order.
Fixes #48
🤖 Generated with Claude Code